package com.storyroad.responseClasses;

import java.util.ArrayList;

/**
 * Fields of this class are used to store information about a user. Instances of this class are sent to the front-end
 * to be used when displaying the profile of a user. Accumulating all the data in an object facilitates transfer of data as well
 * as receiving and processing it. 
 */
public class Profile {

	private String userName;
	private String email;
	private String photoLink;
	private int followerCount;
	private ArrayList<StoryView> stories;
	private boolean isFollowing;

	public Profile(String user_name, String e_mail, String photoLink, int followerCount) {
		userName = user_name;
		email = e_mail;
		this.photoLink = photoLink;
		this.setFollowerCount(followerCount);
		stories = new ArrayList<StoryView>();
	}

	public void addStoryToStoriesArray(StoryView story) {
		stories.add(story);
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhotoLink() {
		return photoLink;
	}

	public void setPhotoLink(String photoLink) {
		this.photoLink = photoLink;
	}

	public ArrayList<StoryView> getStories() {
		return stories;
	}

	public void setStories(ArrayList<StoryView> stories) {
		this.stories = stories;
	}

	public boolean isFollowing() {
		return isFollowing;
	}

	public void setFollowing(boolean isFollowing) {
		this.isFollowing = isFollowing;
	}

	public int getFollowerCount() {
		return followerCount;
	}

	public void setFollowerCount(int followerCount) {
		this.followerCount = followerCount;
	}

}